Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Mamba] from pretrained issue with self.embeddings #29851

Merged
merged 4 commits into from
Mar 28, 2024

Conversation

ArthurZucker
Copy link
Collaborator

@ArthurZucker ArthurZucker commented Mar 25, 2024

What does this PR do?

Fixes #29631. There was a typo when porting the models, self.embeddings vs self.embedding which was not caught because of a from_pretrained issue.

>>> from transformers import AutoModel
>>> model = AutoModel.from_pretrained("state-spaces/mamba-130m-hf")

no longer gives a warning

@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

@ArthurZucker ArthurZucker marked this pull request as ready for review March 28, 2024 06:14
@ArthurZucker ArthurZucker merged commit e677479 into main Mar 28, 2024
18 checks passed
@ArthurZucker ArthurZucker deleted the fix-mamba-embeddings branch March 28, 2024 12:54
itazap pushed a commit that referenced this pull request May 14, 2024
* nit

* update

* oups

* Update src/transformers/models/mamba/modeling_mamba.py

Co-authored-by: Lysandre Debut <[email protected]>

---------

Co-authored-by: Lysandre Debut <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Conversion Script for Mamba checkpoints (mamba_ssm -> transformers)
3 participants